import instance from '@/utils/request';

export function GetShowTrain(data) {
    return instance.request({
        url: "/api/Train/GetTrain",
        method: "post",
        data
    })
}

export function GetTotaocount() {
    return instance.request({
        url: "/api/Train/GetCount",
        method: "get",
    })
}

export function addTrain(data) {
    return instance.request({
        url: "/api/Train/PostAddTrain",
        method: "post",
        data
    })
}

export function updateTrain(data) {
    return instance.request({
        url: "/api/Train/PutUpdateTrain",
        method: "put",
        data
    })
}

export function deleteTrain(data) {
    return instance.request({
        url: "/api/Train/DeleteTrain",
        method: "delete",
        data
    })
}